public class SolutionInterview10_5 {
    public int findString(String[] words, String s) {
        for (int i=0;i<words.length;i++){
            if (words[i].equals(s)){
                return i;
            }
        }
        return -1;
    }

    public static void main(String[] args) {
        System.out.println(new SolutionInterview10_5().findString(new String[]{"at", "", "", "", "ball", "", "", "car", "", "","dad", "", ""},"ta"));
    }
}
